import axios from '@/libs/api.request'
export default class kanbanApi {
  // 团队管理列表
  static GetList (params) {
    return axios.request({
      url: '/SaleTeam/GetList',
      method: 'post',
      data: params
    })
  }

  // 启用/禁用团队
  static EnabledList (params) {
    return axios.request({
      url: '/SaleTeam/EnabledList',
      method: 'post',
      data: params
    })
  }
  // 获取销售人员列表
  static GetVisibleTreeList (params) {
    return axios.request({
      url: '/User/GetVisibleTreeList',
      method: 'get',
      params: params
    })
  }

  // 获取团队信息
  static GetModel (params) {
    return axios.request({
      url: '/SaleTeam/GetModel',
      method: 'get',
      params: params
    })
  }

  //保存团队
  static Save (params) {
    return axios.request({
      url: '/SaleTeam/Save',
      method: 'post',
      data: params
    })
  }
}